package com.blb.community.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blb.community.entity.SysArea;
import com.blb.community.entity.vo.AreaVO;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 区域表 Mapper 接口
 * </p>
 *
 * @author 帅帅
 * @since 2022-07-02
 */
@Component
public interface SysAreaMapper extends BaseMapper<SysArea> {

    /**
     * 地址自查询
     * @return
     */
    List<AreaVO> getArea();

    SysArea getById(Integer id);

    SysArea getCityByid(Integer parentId);

    SysArea getshenByid(Integer parentId);
}
